﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using SagiShopLibrary.BusinessObjects;

namespace SagiShop.Modules.ModuleQuanLy
{
    public partial class ScreenQuanLyNhanVien : DevExpress.XtraEditors.XtraForm
    {
        private IList<BONhanvien> boNhanVienList = new List<BONhanvien>();
        private BindingList<BORole> _bindingListRole;
        public ScreenQuanLyNhanVien()
        {
            InitializeComponent();
        }
        #region load du lieu cho control
        private void loadCombobox() {
            try
            {
                IList<BORole> listRole = BORole.RoleCollection();
                _bindingListRole = new BindingList<BORole>(listRole);
                lookUpEditRoleNhanVien.Properties.DataSource = _bindingListRole;
                lookUpEditRoleNhanVien.Properties.DisplayMember = "IdRole";
                lookUpEditRoleNhanVien.Properties.ValueMember = "TenRole";
            }
            catch (Exception)
            {
                
                throw;
            }
            
        }
        #endregion
    }
}